const mongoose = require('mongoose');
const {model, Schema} = mongoose
const gpsSchema = Schema({
    name: String,
    postcode:Number,   //邮编
    scope:{type:Number,enum:[1,2,3]},   //范围 1产地 2交易地 3销往地
    location: {
        type: {
            type: String,
            default: 'Point'
        },
        coordinates: {
            type: [Number],
            required: true
        }
    }
});

module.exports = model('gpsDict', gpsSchema,'gpsDict');
